

typedef struct
{
	uint16_t year;
	uint8_t month;
	uint8_t date;
	uint8_t hour;
	uint8_t minute;
	uint8_t second;
	uint8_t week;
} RTC_DateTimeTypeDef;

uint32_t UTC_mkTime(unsigned int year, unsigned int mon,
		unsigned int day, unsigned int hour,
		unsigned int min, unsigned int sec);

void UTC_getDate(RTC_DateTimeTypeDef *time, uint32_t Timestamp);
